#include<stdio.h>
#include<stdlib.h>
int main(int argc,char **argv){
	if(argc!=3){
		printf("error\n");
		return -1;
		
	}
	char* srcfile=argv[1];
	char* destfile=argv[2];
	FILE *fp1,*fp2;
	fp1=fopen(argv[1],"r");
	if(fp1==NULL){
		printf("srcfile open error");
		return -1;
		
	}
	fp2=fopen(argv[2],"w");
	if(fp2==NULL){
	printf("destfile open error");
	return -1;
	
	}
	
	
	while(1){
		char ch=fgetc(fp1);
		if(feof(fp1))
		break;
		fputc(ch,fp2);
	}
	
	fclose(fp1);
	fclose(fp2);
	
	
	return 0;
} 
